using System;
using System.Collections.Generic;

namespace ContactCenter.Core.Common
{
    public static class ObjectExtensions
    {
        public static bool IsNull(this object  value)
        {
            return value == null;
        }

        public static void ForEach<T>(this IEnumerable<T> items, Action<T> action)
        {
            foreach (var item in items)
            {
                action(item);
            }
        }
    }
}